/* MainTest.java 
* Created on Nov 30, 2012 
*@Author: Mr.Viet 
*@Phone: 01683430426 
*@Email: phamvanvietcdhd@gmail.com
*/ 
package com.session4; 
public class MainTest {
	public static void main(String[] args) {
		WrapperTest t = new WrapperTest();
		
		Class c = t.getClass();
		String name = c.getName();
		System.out.println(name);
		
		int dotIndex = name.lastIndexOf(".");
		String className = name.substring(dotIndex + 1);
		System.out.println(className);
//		Chuyen Doi Thanh Object
		String strclass = "com.session4.WrapperTest";
		try {
			Class c1 = Class.forName(strclass);
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
